package cn.kgc.tangcco.pojo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.io.Serializable;


/**
 * @author 李昊哲
 * @Description
 * @create 2020/12/29 14:34
 */

@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Entity
@Table(name = "dujitang")
public class Dujitang implements Serializable {
    private static final long serialVersionUID = 2566271842043865021L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Integer id;
    @Column(name = "text")
    private String Text;

    public Dujitang(String text) {
        Text = text;
    }
}
